/*
    MediaCenterJS - A NodeJS based mediacenter solution

    Copyright (C) 2013 - Jan Smolders

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/

body.playing #header,
body.playing .container-fluid{display:none;}

body.playing > #player{display:block;}

.container-fluid {
    overflow-x: hidden;
    padding-top: 15px;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    -webkit-overflow-scrolling: touch;
}

header .container, header .row, header .col-md-12 { height: 100%;}

html, body {
    overflow: hidden;
    height: 100%;
}

/* Bootstrap override */

@media only screen and (min-width: 768px) {
    /* For phone layouts only */
    .col-lg-2 {
        width: 16%!important;
    }
}

#backdrop{
    box-shadow:none;
    padding: 10px 0 0 100px;
    position:fixed;
    top:0;
    z-index:-1;
    height:100vh;
    overflow:hidden;
    width:100vw;
    background:url(img/backdrop.png) repeat-x;
    -webkit-transition: opacity 2s ease-in-out;
    -moz-transition: opacity 2s ease-in-out;
    -ms-transition: opacity 2s ease-in-out;
    -o-transition: opacity 2s ease-in-out;
    transition: opacity 2s ease-in-out;
    -webkit-transition: height 1s ease-in-out;
    -moz-transition: height 1s ease-in-out;
    -ms-transition: height 1s ease-in-out;
    -o-transition: height 1s ease-in-out;
    transition: height 1s ease-in-out;
    padding:0;
}

#backdropimg{
    height:100vh;
    float:left;
    display:block;
    position: relative;
    width:100vw;
    /*
    filter: blur(8px);
    -webkit-filter: blur(8px);
    -moz-filter: blur(8px);
    -o-filter: blur(8px);
    -ms-filter: blur(8px);
    filter: url(blur.svg#blur);
    */
    opacity:0.5;
}

.fixed-ratio {
    height: 0;
    position: relative;
    overflow: hidden;
}

.fixed-ratio-cover {
    padding-bottom:150%;
}

body.playing #backdropimg{
    /*
    filter: none;
    -webkit-filter: blur(0px);
    -moz-filter: blur(0px);
    -ms-filter: blur(0px);
    filter:progid:DXImageTransform.Microsoft.Blur(PixelRadius='0');
    */
}

/* Movie App styling */

#view-select {
    position: absolute;
    top: 0;
    right: 264px;
}

.view-select {
    padding: 19px 20px;
    display: inline-block;
    background: #4B4C51;
    cursor:pointer;
    color:#fff;
    font-weight:500;
    width: auto;
}

.view-select:hover{
    background: #fb8521;
}

.movie-loading {
    position:absolute;
    left:50%;
    top:50%;
    width:200px;
    height:200px;
}

.loading.icon{
    -webkit-animation: icon-loading 0.5s linear infinite;
    -ms-animation: icon-loading 0.5s linear infinite;
    animation: icon-loading 0.5s linear infinite;
    font-size:48px;
    color:#fb8521;
}

.row > div[class*='col-'] {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    flex:1 0 auto;
}

.movieposter{
    list-style:none;
    z-index:3;
    position:relative;
    padding: 0px;
    margin: 0;
    border-radius:0px;
    background:#17181a;
    cursor:pointer;
    overflow:hidden;
    border:0;
}

.movieposter .edit.icon{display:none;}
.movieposter:hover .edit.icon{
    display:block;
    position:absolute;
    top:5px;
    right:5px;
    z-index:9;
}
.modal-body img{max-width:300px; max-height:400px;}

.modal-dialog {
    width: 70%;
    min-width: 600px;
}

.movieposter-container {
    padding: 15px;
}

[selected] .movieposter {
    -webkit-transform: scale(1.05);
    z-index:3;
}
[selected] .movieposter img{
    opacity: 0.5;
    cursor: pointer;
}

.movieposter .cdNumber{
    width:90px;
    height:80px;
    background:url(img/cdnumber-bg.png) no-repeat;
    position:absolute;
    top: 0px;
    right:0px;
    z-index:3;
}

.movieposter .cdNumber > span{
    color:#fff;
    font-size:14px;
    -webkit-transform: rotate(44.5deg);  /* Chrome, Safari 3.1+ */
    -moz-transform: rotate(44.5deg);  /* Firefox 3.5-15 */
    -ms-transform: rotate(44.5deg);  /* IE 9 */
    -o-transform: rotate(44.5deg);  /* Opera 10.50-12.00 */
    transform: rotate(44.5deg);
    font-weight:bold;
    margin-left: 47px;
    margin-top: 15px;
}

.movieposter img{
    margin:0 0 20px 0;
    display:block;
    width:100%;
    height:100%;
    min-height:375px;
    padding:0;
    border:0;
}
.movieposter .caption > img{display:none;}

[selected] .caption > img{
    display:block;
    width: 100%;
    max-height: 150px;
    min-height: 100px;
    opacity: 1;
    margin:0;
}

.movieposter span{
    display:block;
    float:left;
    font-size: 14px;
    color:#fff;
    margin-top:10px;
    text-transform:capitalize;
}

span.title{visibility:hidden; width:0; height:0;}


[selected] .caption {

    transform: translateY(0%) !important;
    -webkit-transform: translateY(0%) !important;
}


.movieposter .caption{
    height:100%;
    max-height: 100%;
    transform: translateY(100%);
    -webkit-transform: translateY(100%);
    padding:0;
    width:100%;
    background:rgba(0,0,0,0.8);
    color: #fff;
    position:absolute;
    bottom:0;
    left:0;
    z-index: 5;
    -webkit-transition: -webkit-transform 0.5s ease-in-out;
    -moz-transition: transform 0.5s ease-in-out;
    -o-transition: transform 0.5s ease-in-out;
    transition: transform 0.5s ease-in-out;
}

.movieposter .caption p{
    padding:9px;
    margin:0;
}


.movieposter a{ float:left; }
.movieposter .imageWrapper {width:250px;  height:278px; overflow:hidden;}
.movieposter .overview{
    padding:10px 10px 0 10px;
    margin:0;
    height:210px;
    -webkit-mask-box-image:
-webkit-linear-gradient(transparent, transparent 1%, black 10%, black 90%, transparent 99%,  transparent);
    position:relative;
    overflow:hidden;
}

.movieposter .specs{
    float: left;
    color: #fff;
    line-height: 19px;
    width: 100%;
    background:#363636;
    height:35px;
    position:absolute;
    bottom:0;
    left:0;
    border-top: 1px solid #333;
    z-index:6;
}

h1.movie-title{
    margin: 0px 0 10px 0;
    padding:10px 10px 0;
    font-size: 21px;
    width: 210px;
    text-transform: none;
    font-family: 'Open Sans', sans-serif;
    font-weight:500;
    text-transform: capitalize;
}
.specs p{font-size:12px; float:left; margin:10px 0 0 9px;}

.summary{
    height:100%;
    top:0;
    font-size:16px;
    line-height:23px;
    position: relative;
}

[selected] .summary {
    -webkit-animation: overview-slide 15s linear infinite;
    animation: overview-slide 15s linear infinite;
}

#genres { position:absolute; top: 240px; left: 96px;}
#genres li{ float:left; margin-right:20px;}


#player.mobile-player  .vjs-control-bar{
    bottom:100px;
    background:red;
    left:0;
}

/*
.imdbrating{
    color:#ddd;
    font-size:14px;
    text-align:left;
    width:80px;
    float:left;
}
.imdbrating p{ margin:10px 0 20px 0; }
.imdbrating h3{font-size:30px;}

.certification{
    border:2px solid #000;
    background-color:#fff;
    font-family:Palatino;
    font-weight:bold;
    font-size:24px;
    color:#000;
    display:inline-block;
    float:right;
    margin-top:10px;
    text-align:center;
    padding:3px 5px;
}
*/

@-webkit-keyframes backdrop-slide {
    0%{ top:-180px; }
    25%{ top:0; }
    100%{ top:-180px; }
}

@keyframes backdrop-slide {
    0%{ top:-180px; }
    50%{ top:0; }
    100%{ top:-180px; }
}

@-webkit-keyframes overview-slide {
    25%{ top:0; }
    98%{ top:-180px; }
    100%{ top:0px; }
}

@keyframes overview-slide {
    25%{ top:0; }
    98%{ top:-180px; }
    100%{ top:0px; }
}



@media (max-width: 600px) {
    .container-fluid{
        padding-left: 0;
        padding-right: 0;
    }
}


